package com.dyh.quickdemozwei.dyhTp;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import com.google.common.collect.Lists;
import org.junit.jupiter.api.Test;
import org.springframework.util.Assert;

import java.util.List;

/**
 * @Author: yhdong
 * @Date: 2021/10/9 11:02
 */
public class TestDiffList {


    @Test
    public void test1(){
        String raw = " {\n" +
                "\t\"is_super\": false,\n" +
                "\t\"name\": [],\n" +
                "\t\"option_id\": \"1.09\"\n" +
                "}";

        JSONObject root = JSON.parseObject(raw);

        System.out.println();

    }



    @Test
    public void test(){
        List<Foo> data = Lists.newArrayList(
                new Foo("A"),
                new Foo("A"),
                new Foo("A"),
                new Foo("B"),
                new Foo("B"),
                new Foo("C"),
                new Foo("B"),
                new Foo("A")
        );

    }
}
